cssprovider: Change declaration parsing for error reporting
authorBenjamin Otte <otte@redhat.com>
Thu, 7 Apr 2011 22:08:10 +0000 (00:08 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 19:58:44 +0000 (21:58 +0200)
commitb34f004f434eb4def32f04906876f34aef2ce474
tree49a5b11697a9b53d0e1a166004282cfae419baca
parentee531567626e2d4c73763632cee28b428e9d1da7
cssprovider: Change declaration parsing for error reporting

Previously, we only checked for errors after parsing the full
declaration. Now we detect errors with the property before even
attempting to parse its value.
The benefit here is that the error reporting reports the correct line
and position numbers.
gtk/gtkcssprovider.c